package com.hbuzzs.shiro.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbuzzs.shiro.entity.MyPermission;
import com.hbuzzs.shiro.entity.RolePermission;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhangzhishun
 * @since 2020-10-11
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    /**
     * 根据角色ID获取角色ID的权限
     *
     * @param roleId 角色ID
     * @return 角色拥有的权限
     */
    List<MyPermission> getPermissionByRoleId(String roleId);

}
